how to write an if statement in java